Sha256: 81a0242ebed401b986ec2133524918a464a7cb26c2a369cb38e42af61742101f

Contents?: true

Size: 617 Bytes

Versions: 14

Compression:

Stored size: 617 Bytes

Contents

class CreateSaphiraFileItems < ActiveRecord::Migration
  def change
    create_table :saphira_file_items do |t|
      t.string :name
      t.string :item_type
      t.string :file_uid
      t.string :file_name
      t.string :slug
      t.string :path
      t.integer :parent_id
      t.integer :lft
      t.integer :rgt
      t.text :dynamic_attributes

      t.timestamps
    end
    add_index :saphira_file_items, :slug
    add_index :saphira_file_items, :path, :unique => true
    add_index :saphira_file_items, :parent_id
    add_index :saphira_file_items, :lft
    add_index :saphira_file_items, :rgt
  end
end

Version data entries

14 entries across 7 versions & 1 rubygems

Version Path
saphira-0.1.1.beta1 db/migrate/20110904170134_create_saphira_file_items.rb
saphira-0.1.1.beta1 test/dummy/db/migrate/20110904172951_create_saphira_file_items.rb
saphira-0.1.0 db/migrate/20110904170134_create_saphira_file_items.rb
saphira-0.1.0 test/dummy/db/migrate/20110904172951_create_saphira_file_items.rb
saphira-0.1.0.beta4 db/migrate/20110904170134_create_saphira_file_items.rb
saphira-0.1.0.beta4 test/dummy/db/migrate/20110904172951_create_saphira_file_items.rb
saphira-0.1.0.beta3 test/dummy/db/migrate/20110904172951_create_saphira_file_items.rb
saphira-0.1.0.beta3 db/migrate/20110904170134_create_saphira_file_items.rb
saphira-0.1.0.beta2 test/dummy/db/migrate/20110904172951_create_saphira_file_items.rb
saphira-0.1.0.beta2 db/migrate/20110904170134_create_saphira_file_items.rb
saphira-0.1.0.beta1 test/dummy/db/migrate/20110904172951_create_saphira_file_items.rb
saphira-0.1.0.beta1 db/migrate/20110904170134_create_saphira_file_items.rb
saphira-0.0.1 db/migrate/20110904170134_create_saphira_file_items.rb
saphira-0.0.1 test/dummy/db/migrate/20110904172951_create_saphira_file_items.rb