Created
November 10, 2017 16:41
-
-
Save domagude/8bde11ce0d85de416ee6cae2d5c6e23e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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