mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-18 23:21:30 +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
|