16 lines
519 B
Ruby
16 lines
519 B
Ruby
class CreateSeatTables < ActiveRecord::Migration[5.0]
|
|
def change
|
|
create_table :seat_tables do |t|
|
|
t.references :zone, foreign_key: true
|
|
t.string :name, :null => false
|
|
t.integer :order_by
|
|
t.integer :no_of_seater, :null => false, :default => 2
|
|
t.string :table_type, :null => false, :default => "square"
|
|
t.float :position_x, :null => false, :default => 0.0
|
|
t.float :position_y, :null => false, :default => 0.0
|
|
t.string :created_by
|
|
t.timestamps
|
|
end
|
|
end
|
|
end
|