Sha256: dbe9480cfc7c7be6cb990c644d18309201e13b0675f740451fe30431ce808d6f

Contents?: true

Size: 329 Bytes

Versions: 4

Compression:

Stored size: 329 Bytes

Contents

class <%= migration_class_name %> < ActiveRecord::Migration
  def self.up
    create_table :conformables do |t|
      t.string :conformist_type
      t.integer :conformable_id
      t.string :conformable_type
      t.<%=conformity_set_type%> :conformity_set

    end
  end

  def self.down
    drop_table :conformables
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
active_conformity-0.3.0 lib/generators/active_conformity/install/templates/active_conformity_migration.rb.erb
active_conformity-0.2.15 lib/generators/active_conformity/install/templates/active_conformity_migration.rb.erb
active_conformity-0.2.14 lib/generators/active_conformity/install/templates/active_conformity_migration.rb.erb
active_conformity-0.2.13 lib/generators/active_conformity/install/templates/active_conformity_migration.rb.erb