scinote-web/db/migrate/20150715122019_create_logs.rb
2016-02-12 16:52:43 +01:00

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