Sha256: 32de9b84c30c411eba6385c52fdbd422fed263e9358f169e7af1bfa026d18d13

Contents?: true

Size: 322 Bytes

Versions: 6

Compression:

Stored size: 322 Bytes

Contents

class CreateE9Attributes < ActiveRecord::Migration
  def self.up
    create_table :record_attributes, :force => true do |t|
      t.string :type
      t.references :record, :polymorphic => true
      t.text :value, :options, :limit => 3.kilobytes
    end
  end

  def self.down
    drop_table :record_attributes
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
e9_attributes-0.0.6 lib/generators/e9_attributes/templates/migration.rb
e9_attributes-0.0.5 lib/generators/e9_attributes/templates/migration.rb
e9_attributes-0.0.4 lib/generators/e9_attributes/templates/migration.rb
e9_attributes-0.0.3 lib/generators/e9_attributes/templates/migration.rb
e9_attributes-0.0.2 lib/generators/e9_attributes/templates/migration.rb
e9_attributes-0.0.1 lib/generators/e9_attributes/templates/migration.rb