Sha256: c85b6fc2027b80917de95f62229d2322f51c96aa8be60544772e0934ef288cb8

Contents?: true

Size: 247 Bytes

Versions: 7

Compression:

Stored size: 247 Bytes

Contents

class CreateCollections < ActiveRecord::Migration
  def change
    create_table :collections do |t|
      t.boolean :is_visible, :default => true, :null => false
      t.integer :products_count, :default => 0

      t.timestamps
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ab_admin-0.2.3 spec/dummy/db/migrate/20130130161853_create_collections.rb
ab_admin-0.2.2 spec/dummy/db/migrate/20130130161853_create_collections.rb
ab_admin-0.2.1 spec/dummy/db/migrate/20130130161853_create_collections.rb
ab_admin-0.2.0 spec/dummy/db/migrate/20130130161853_create_collections.rb
ab_admin-0.1.2 spec/dummy/db/migrate/20130130161853_create_collections.rb
ab_admin-0.1.1 spec/dummy/db/migrate/20130130161853_create_collections.rb
ab_admin-0.1.0 spec/dummy/db/migrate/20130130161853_create_collections.rb