mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-14 13:16:28 +08:00
9 lines
228 B
Ruby
9 lines
228 B
Ruby
class CreateLogs < ActiveRecord::Migration
|
|
def change
|
|
create_table :logs do |t|
|
|
t.integer :organization_id, null: false
|
|
t.string :message, null:false
|
|
end
|
|
add_foreign_key :logs, :organizations
|
|
end
|
|
end
|