Skip to content

Instantly share code, notes, and snippets.

@domagude
Created November 10, 2017 16:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save domagude/8bde11ce0d85de416ee6cae2d5c6e23e to your computer and use it in GitHub Desktop.
Save domagude/8bde11ce0d85de416ee6cae2d5c6e23e to your computer and use it in GitHub Desktop.
class CreatePrivateMessages < ActiveRecord::Migration[5.1]
def change
create_table :private_messages do |t|
t.text :body
t.references :user, foreign_key: true
t.belongs_to :conversation, index: true
t.boolean :seen, default: false
t.timestamps
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment