Sha256: 455487de5f379556374d9eba34910deebdd6218c95f29a240ae74ba52568c3b8
Contents?: true
Size: 549 Bytes
Versions: 228
Compression:
Stored size: 549 Bytes
Contents
class CreateMessages < ActiveRecord::Migration def self.up create_table :messages, :force => true do |t| t.datetime :read_at t.integer :receiver_id, :sender_id t.string :subject, :null => false t.text :body t.integer :message_request_id t.integer :parent_id t.timestamps end add_index :messages, :sender_id add_index :messages, :receiver_id add_index :messages, :message_request_id add_index :messages, :parent_id end def self.down drop_table :messages end end
Version data entries
228 entries across 221 versions & 20 rubygems