mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-31 04:32:06 +08:00
10 lines
238 B
Ruby
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
|