mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-02 21:51:51 +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
|