lib/generators/templates/apps_migration.rb.erb in native-1.0.0 vs lib/generators/templates/apps_migration.rb.erb in native-2.0.0
- old
+ new
@@ -1,9 +1,9 @@
class NativeMigration < ActiveRecord::Migration<%= migration_version %>
def change
create_table :native_apps do |t|
- t.references Native.configuration.devise_class.downcase.to_sym, index: true
+ t.references :owner, polymorphic: true, index: true
t.string :platform, index: true
t.string :url, index: true
t.datetime :last_used