2017-06-30 16:23:28 +08:00
|
|
|
class CreateTables < ActiveRecord::Migration[4.2]
|
2016-02-12 23:52:43 +08:00
|
|
|
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
|