lib/generators/yodeler/templates/migration.rb in yodeler-0.0.9 vs lib/generators/yodeler/templates/migration.rb in yodeler-0.0.10
- old
+ new
@@ -33,10 +33,10 @@
t.datetime :updated_at, null: false
end
# sqlite3 has an index name length limitation of 62(?!) characters
unless Rails.env.test?
- add_index :yodeler_event_types, :name
+ add_index :yodeler_event_types, :name, unique: true
add_index :yodeler_events, :yodeler_event_type_id
add_index :yodeler_subscriptions, :yodeler_event_type_id
add_index :yodeler_subscriptions, [:subscriber_id, :subscriber_type]