scinote-web/db/migrate/20150716061937_create_tables.rb
2017-06-30 10:23:28 +02:00

10 lines
238 B
Ruby

class CreateTables < ActiveRecord::Migration[4.2]
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