qi6_app/db/migrate/0112_create_table_rows.rb
2019-05-17 12:30:45 +02:00

16 lines
300 B
Ruby

# -*- encoding : utf-8 -*-
class CreateTableRows < ActiveRecord::Migration[6.0]
def self.up
create_table :table_rows do |t|
t.integer :position
t.integer :style
t.references :table_content
t.timestamps
end
end
def self.down
drop_table :table_rows
end
end