scinote-web/db/migrate/20150715122019_create_logs.rb

10 lines
228 B
Ruby
Raw Normal View History

2016-02-12 23:52:43 +08:00
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