Sha256: 207f63d171885c2c224c8b7ce45a9275bef6067a36abc09af4ea1cf5b563b8b9
Contents?: true
Size: 628 Bytes
Versions: 2
Compression:
Stored size: 628 Bytes
Contents
class CreateConfirmedAttributesTables < ActiveRecord::Migration def self.up create_table :confirmed_attributes_controls do |t| t.string :name, null: false, limit: 64 t.text :value, null: false t.references :targetable, polymorphic: true, null: false t.references :user t.timestamps end add_index :confirmed_attributes_controls, :name add_index :confirmed_attributes_controls, :user_id add_index :confirmed_attributes_controls, :targetable_id add_index :confirmed_attributes_controls, :targetable_type end def self.down drop_table :confirmed_attributes end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
confirmed_attributes-0.2.0 | lib/generators/confirmed_attributes/templates/migration.rb |
confirmed_attributes-0.1.0 | lib/generators/confirmed_attributes/templates/migration.rb |