Initial commit
This commit is contained in:
13
db/migrate/20210425062048_add_step_to_phone.rb
Normal file
13
db/migrate/20210425062048_add_step_to_phone.rb
Normal file
@@ -0,0 +1,13 @@
|
||||
class AddStepToPhone < ActiveRecord::Migration[5.2]
|
||||
def up
|
||||
add_column :phones, :category, :integer, null: false
|
||||
add_column :phones, :state, :integer, null: true, default: 0
|
||||
add_column :phones, :step, :integer, null: true, default: 0
|
||||
end
|
||||
|
||||
def down
|
||||
remove_column :phones, :category
|
||||
remove_column :phones, :state
|
||||
remove_column :phones, :step
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user