Sha256: e9730abc984f09b021a6141532e0fc4ad105cd477a63abf9e1a6b6e3d35c66e8
Contents?: true
Size: 662 Bytes
Versions: 65
Compression:
Stored size: 662 Bytes
Contents
class ProductGroupsAndScopes < ActiveRecord::Migration def self.up create_table(:product_groups) do |t| t.column :name, :string t.column :permalink, :string t.column :order, :string end create_table(:product_scopes) do |t| t.column :product_group_id, :integer t.column :name, :string t.column :arguments, :text end add_index :product_groups, :name add_index :product_groups, :permalink add_index :product_scopes, :name add_index :product_scopes, :product_group_id end def self.down drop_table :product_groups drop_table :product_scopes end end
Version data entries
65 entries across 53 versions & 10 rubygems