Sha256: c92ca5e9b4d741a6b00a7bd6e338fbee7af00aeefb369e8f2606050a3a990655

Contents?: true

Size: 360 Bytes

Versions: 7

Compression:

Stored size: 360 Bytes

Contents

class CreatePreferences < ActiveRecord::Migration
  def change
    create_table :preferences do |t|
      t.string :name
      t.boolean :value
      t.integer :prefered_id
      t.string :prefered_type

      t.timestamps
    end

    add_index :preferences, :prefered_id
    add_index :preferences, :prefered_type
    add_index :preferences, :name
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
flavors-1.0.0 lib/generators/flavors/templates/create_preferences.rb
flavors-1.0.0.rc.1 lib/generators/flavors/templates/create_preferences.rb
flavors-0.6.0 lib/generators/flavors/templates/create_preferences.rb
flavors-0.5.0 lib/generators/flavors/templates/create_preferences.rb
flavors-0.4.0 lib/generators/flavors/templates/create_preferences.rb
flavors-0.3.0 lib/generators/flavors/templates/create_preferences.rb
flavors-0.2.0 lib/generators/flavors/templates/create_preferences.rb