Sha256: 633f3d39be1b7db831c57f6aeb83653b818c444832a1d0702261f629673955b5

Contents?: true

Size: 475 Bytes

Versions: 61

Compression:

Stored size: 475 Bytes

Contents

class CreateElements < ActiveRecord::Migration
  def self.up
    create_table :elements do |t|
      t.string :name
      t.string :display_name
      t.integer :position
      t.integer :page_id
      t.boolean :public, :default => true
      t.boolean :folded, :default => false
      t.boolean :unique, :default => false
      t.timestamps
      t.userstamps
    end
    add_index :elements, [:page_id, :position]
  end

  def self.down
    drop_table :elements
  end
end

Version data entries

61 entries across 61 versions & 1 rubygems

Version Path
alchemy_cms-2.1.9 db/migrate/20100607144254_create_elements.rb
alchemy_cms-2.2.rc6 db/migrate/20100607144254_create_elements.rb
alchemy_cms-2.1.8.1 db/migrate/20100607144254_create_elements.rb
alchemy_cms-2.2.rc3 db/migrate/20100607144254_create_elements.rb
alchemy_cms-2.1.8 db/migrate/20100607144254_create_elements.rb
alchemy_cms-2.2.rc2 db/migrate/20100607144254_create_elements.rb
alchemy_cms-2.2.rc1 db/migrate/20100607144254_create_elements.rb
alchemy_cms-2.1.7 db/migrate/20100607144254_create_elements.rb
alchemy_cms-2.1.6 db/migrate/20100607144254_create_elements.rb
alchemy_cms-2.1.5 db/migrate/20100607144254_create_elements.rb
alchemy_cms-2.1.4 db/migrate/20100607144254_create_elements.rb
alchemy_cms-2.1.3 db/migrate/20100607144254_create_elements.rb
alchemy_cms-2.1.2 db/migrate/20100607144254_create_elements.rb
alchemy_cms-2.1.1 db/migrate/20100607144254_create_elements.rb
alchemy_cms-2.1 db/migrate/20100607144254_create_elements.rb
alchemy_cms-2.1.rc6 db/migrate/20100607144254_create_elements.rb
alchemy_cms-2.1.rc5 db/migrate/20100607144254_create_elements.rb
alchemy_cms-2.1.rc4 db/migrate/20100607144254_create_elements.rb
alchemy_cms-2.1.rc3 db/migrate/20100607144254_create_elements.rb
alchemy_cms-2.1.rc2 db/migrate/20100607144254_create_elements.rb