rails 6 table_exists code example
Example: 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
create_table :repo_subscriptions, if_not_exists: true do |t|
t.string :user_name
t.string :repo_name
t.timestamps
end