Sha256: cc55e906987d97361b9514b7ca61269249352473bfc815d4d7a946f463f0e8df

Contents?: true

Size: 769 Bytes

Versions: 16

Compression:

Stored size: 769 Bytes

Contents

class CreateFields < ActiveRecord::Migration
  def self.up
    create_table :fields, :force => true do |t|
      t.string      :type
      t.references  :field_group
      t.string      :klass_name,  :limit => 32
      t.integer     :position
      t.string      :name,        :limit => 64
      t.string      :label,       :limit => 128
      t.string      :hint
      t.string      :placeholder
      t.string      :as,          :limit => 32
      t.string      :collection
      t.boolean     :disabled
      t.boolean     :required
      t.integer     :maxlength,   :limit => 4
      t.timestamps
    end
    add_index :fields, :name
    add_index :fields, :klass_name
    add_index :fields, :field_group_id
  end

  def self.down
    drop_table :fields
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
fat_free_crm-0.13.6 db/migrate/20111101083437_create_fields.rb
fat_free_crm-0.13.5 db/migrate/20111101083437_create_fields.rb
fat_free_crm-0.13.4 db/migrate/20111101083437_create_fields.rb
fat_free_crm-0.13.3 db/migrate/20111101083437_create_fields.rb
fat_free_crm-0.13.2 db/migrate/20111101083437_create_fields.rb
fat_free_crm-0.12.3 db/migrate/20111101083437_create_fields.rb
fat_free_crm-0.12.2 db/migrate/20111101083437_create_fields.rb
fat_free_crm-0.13.1 db/migrate/20111101083437_create_fields.rb
fat_free_crm-0.12.1 db/migrate/20111101083437_create_fields.rb
fat_free_crm-0.13.0 db/migrate/20111101083437_create_fields.rb
fat_free_crm-0.12.0 db/migrate/20111101083437_create_fields.rb
fat_free_crm-0.11.4 db/migrate/20111101083437_create_fields.rb
fat_free_crm-0.11.3 db/migrate/20111101083437_create_fields.rb
fat_free_crm-0.11.2 db/migrate/20111101083437_create_fields.rb
fat_free_crm-0.11.1 db/migrate/20111101083437_create_fields.rb
fat_free_crm-0.11.0 db/migrate/20111101083437_create_fields.rb