Class: CreateFavouriteObjectFavourites
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateFavouriteObjectFavourites
- Defined in:
- lib/generators/favourite_object/install/templates/create_favourite_object_favourites.rb
Instance Method Summary collapse
Instance Method Details
#change ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/generators/favourite_object/install/templates/create_favourite_object_favourites.rb', line 2 def change create_table :favourite_object_favourites do |t| t.integer :target_id t.string :target_type t.string :third_party_id t.string :third_party_type t.integer :owner_id t.string :owner_type t.boolean :is_favourited, default: false t.text :params t.boolean :third_party_flag, default: false t. end end |