Sha256: 42998f7e030fd7c2dcd33b1d2c99e2bb6850acc032ca4bd903f3d45bb76d4496
Contents?: true
Size: 669 Bytes
Versions: 34
Compression:
Stored size: 669 Bytes
Contents
class ReaderMessages < ActiveRecord::Migration def self.up create_table :messages do |t| t.column :site_id, :integer t.column :subject, :string t.column :body, :text t.column :filter_id, :text t.column :created_at, :datetime t.column :updated_at, :datetime t.column :created_by_id, :integer t.column :updated_by_id, :integer end create_table :message_readers do |t| t.column :site_id, :integer t.column :message_id, :integer t.column :reader_id, :integer t.column :sent_at, :datetime end end def self.down drop_table :messages drop_table :message_readers end end
Version data entries
34 entries across 34 versions & 1 rubygems