Sha256: 1966d0ac18f8885f94d72d49b6b1d370f450f87641f1978a41c6fbd09d9de970

Contents?: true

Size: 851 Bytes

Versions: 3

Compression:

Stored size: 851 Bytes

Contents

class GroupMessages < ActiveRecord::Migration
  create_table :groups do |t|
    t.column :name, :string
    t.column :description, :text
    t.column :notes, :text
    t.column :created_at, :datetime
    t.column :updated_at, :datetime
    t.column :created_by_id, :integer
    t.column :updated_by_id, :integer
    t.column :homepage_id, :integer
    t.column :site_id, :integer
    t.column :lock_version, :integer
  end

  create_table :memberships do |t|
    t.column :group_id, :integer
    t.column :reader_id, :integer
  end

  create_table :permissions do |t|
    t.column :group_id, :integer
    t.column :page_id, :integer
  end

  def self.up
    add_column :messages, :group_id, :integer
  end

  def self.down
    drop_table :groups
    drop_table :memberships
    drop_table :permissions
    remove_column :messages, :group_id
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
radiant-reader-extension-3.0.0.rc4 db/migrate/20090921125654_group_messages.rb
radiant-reader-extension-3.0.0.rc3 db/migrate/20090921125654_group_messages.rb
radiant-reader-extension-2.0.0.rc4 db/migrate/20090921125654_group_messages.rb