Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

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
Source by dev.to #
 
PREVIOUS NEXT
Tagged: #create #table #exist #rails
ADD COMMENT
Topic
Name
6+2 =