Answers for "create table in migration only if table not exists rails"

0

create table if not exist rails

create_table :repo_subscriptions, if_not_exists: true do |t|
  t.string      :user_name
  t.string      :repo_name
  t.timestamps
end
Posted by: Guest on April-17-2020

Code answers related to "create table in migration only if table not exists rails"

Browse Popular Code Answers by Language