Sha256: 2cbe030aab67a25fa5414cd448175483df68ab25d494667db445639d27a699a4

Contents?: true

Size: 363 Bytes

Versions: 7

Compression:

Stored size: 363 Bytes

Contents

class NativeMigration < ActiveRecord::Migration<%= migration_version %>
    def change
        create_table :native_apps do |t|

            t.references :owner, polymorphic: true, index: true

            t.string :platform, index: true
            t.string :url, index: true

            t.datetime :last_used

            t.timestamps

        end
    end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
native-2.1.4 lib/generators/templates/apps_migration.rb.erb
native-2.1.3 lib/generators/templates/apps_migration.rb.erb
native-2.1.2 lib/generators/templates/apps_migration.rb.erb
native-2.1.1 lib/generators/templates/apps_migration.rb.erb
native-2.1.0 lib/generators/templates/apps_migration.rb.erb
native-2.0.1 lib/generators/templates/apps_migration.rb.erb
native-2.0.0 lib/generators/templates/apps_migration.rb.erb