scinote-web/db/migrate/20150716061937_create_tables.rb

11 lines
233 B
Ruby
Raw Normal View History

2016-02-12 23:52:43 +08:00
class CreateTables < ActiveRecord::Migration
def change
create_table :tables do |t|
t.binary :contents, null: false, limit: 20.megabyte
t.timestamps null: false
end
add_index :tables, :created_at
end
end