Class: CreateMessages
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateMessages
- Defined in:
- lib/generators/facteur/install/templates/create_messages.rb
Class Method Summary collapse
Class Method Details
.down ⇒ Object
17 18 19 |
# File 'lib/generators/facteur/install/templates/create_messages.rb', line 17 def self.down drop_table :messages end |
.up ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/generators/facteur/install/templates/create_messages.rb', line 2 def self.up create_table :messages do |t| t.string :subject t.text :body t.integer :mailbox_id t.integer :author_id t.boolean :deleted_by_author, :default => false t.datetime :deleted_by_author_at t.boolean :deleted_by_addressee, :default => false t.datetime :deleted_by_addressee_at t.boolean :read, :default => false t. end end |