add zone_label migration
This commit is contained in:
parent
0f2552d593
commit
dc15b39648
2 changed files with 22 additions and 1 deletions
11
db/migrate/20220911134914_create_zone_labels.rb
Normal file
11
db/migrate/20220911134914_create_zone_labels.rb
Normal file
|
@ -0,0 +1,11 @@
|
|||
class CreateZoneLabels < ActiveRecord::Migration[6.1]
|
||||
def change
|
||||
create_table :zone_labels do |t|
|
||||
t.belongs_to :zone, null: false, foreign_key: true
|
||||
t.date :designated_on, null: false
|
||||
t.string :name, null: false
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue