13 lines
249 B
Ruby
13 lines
249 B
Ruby
class CreateAccounts < ActiveRecord::Migration[5.2]
|
|
def change
|
|
create_table :accounts do |t|
|
|
t.string :name
|
|
t.string :slug
|
|
t.string :plan_uid
|
|
|
|
t.timestamps
|
|
end
|
|
add_index :accounts, :slug, unique: true
|
|
end
|
|
end
|