Files
sx-fc/db/migrate/20170324135138_create_zones.rb
2017-10-23 11:38:10 +06:30

11 lines
239 B
Ruby
Executable File

class CreateZones < ActiveRecord::Migration[5.1]
def change
create_table :zones do |t|
t.string :name, :null => false
t.boolean :is_active, :default => true
t.string :created_by
t.timestamps
end
end
end