Sha256: 5de7d2a968a0a6882ce791db6cf4ea8c153e77c9e92a9d3ff6f6a5f7d4949063

Contents?: true

Size: 605 Bytes

Versions: 4

Compression:

Stored size: 605 Bytes

Contents

class PortletNames < ActiveRecord::Migration
  def self.up
    # dealing with tables that have no id is a pain with ActiveRecord,
    # and using the 'id' column for portletid does not work either,
    # ActiveRecord does not let that column to be set manually.
    create_table :portlet_names do |t|
      t.column :portletid, :string, :null => false
      t.column :name,      :string, :null => false
      t.column :title,     :string, :null => false
    end
  end

  def self.down
    drop_table :portlet_names
    #ActiveRecord::Base.connection.execute("DROP TABLE IF EXISTS portlet_names")
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
caterpillar-0.9.5 db/migrate/20081205000001_portlet_names.rb
caterpillar-0.9.4 db/migrate/20081205000001_portlet_names.rb
caterpillar-0.9.6 db/migrate/20081205000001_portlet_names.rb
caterpillar-0.9.8 db/migrate/20081205000001_portlet_names.rb