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

Version Path
radiant-reader-extension-3.0.15 db/migrate/20090921125653_reader_messages.rb
radiant-reader-extension-3.0.14 db/migrate/20090921125653_reader_messages.rb
radiant-reader-extension-3.0.13 db/migrate/20090921125653_reader_messages.rb
radiant-reader-extension-3.0.11 db/migrate/20090921125653_reader_messages.rb
radiant-reader-extension-3.0.10 db/migrate/20090921125653_reader_messages.rb
radiant-reader-extension-3.0.9 db/migrate/20090921125653_reader_messages.rb
radiant-reader-extension-3.0.8 db/migrate/20090921125653_reader_messages.rb
radiant-reader-extension-3.0.7 db/migrate/20090921125653_reader_messages.rb
radiant-reader-extension-3.0.5 db/migrate/20090921125653_reader_messages.rb
radiant-reader-extension-3.0.4 db/migrate/20090921125653_reader_messages.rb
radiant-reader-extension-3.0.3 db/migrate/20090921125653_reader_messages.rb
radiant-reader-extension-3.0.2 db/migrate/20090921125653_reader_messages.rb
radiant-reader-extension-3.0.1 db/migrate/20090921125653_reader_messages.rb
radiant-reader-extension-3.0.0 db/migrate/20090921125653_reader_messages.rb