karim_app/db/migrate/0110_create_table_contents.rb
Nicolas Bally a0a3cfd6fe initial
2018-06-11 01:40:28 +02:00

18 lines
309 B
Ruby

# -*- encoding : utf-8 -*-
class CreateTableContents < ActiveRecord::Migration
def self.up
create_table :table_contents do |t|
t.integer :style
t.integer :nbr_rows
t.integer :nbr_cols
t.timestamps
end
end
def self.down
drop_table :table_contents
end
end