mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-05 07:03:51 +08:00
10 lines
228 B
Ruby
10 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
|