Sha256: 1c5c775a2ae2206d0c128c730240735bacef59e9c71bb6b81032e29f95e9b111

Contents?: true

Size: 389 Bytes

Versions: 94

Compression:

Stored size: 389 Bytes

Contents

class CreateUsers < ActiveRecord::Migration[<%= rails_migration_version %>]
  def self.up
    create_table :users do |t|
      t.bigint :shopify_user_id, null: false
      t.string :shopify_domain, null: false
      t.string :shopify_token, null: false
      t.timestamps
    end

    add_index :users, :shopify_user_id, unique: true
  end

  def self.down
    drop_table :users
  end
end

Version data entries

94 entries across 94 versions & 2 rubygems

Version Path
shopify_app-22.5.1 lib/generators/shopify_app/user_model/templates/db/migrate/create_users.erb
shopify_app-22.5.0 lib/generators/shopify_app/user_model/templates/db/migrate/create_users.erb
shopify_app-22.4.0 lib/generators/shopify_app/user_model/templates/db/migrate/create_users.erb
shopify_app-22.3.1 lib/generators/shopify_app/user_model/templates/db/migrate/create_users.erb
shopify_app-22.3.0 lib/generators/shopify_app/user_model/templates/db/migrate/create_users.erb
ruby_shopify_app-1.3.3 lib/generators/shopify_app/user_model/templates/db/migrate/create_users.erb
ruby_shopify_app-1.3.2 lib/generators/shopify_app/user_model/templates/db/migrate/create_users.erb
ruby_shopify_app-1.3.1 lib/generators/shopify_app/user_model/templates/db/migrate/create_users.erb
ruby_shopify_app-1.3.0 lib/generators/shopify_app/user_model/templates/db/migrate/create_users.erb
ruby_shopify_app-1.2.0 lib/generators/shopify_app/user_model/templates/db/migrate/create_users.erb
shopify_app-22.2.1 lib/generators/shopify_app/user_model/templates/db/migrate/create_users.erb
shopify_app-22.2.0 lib/generators/shopify_app/user_model/templates/db/migrate/create_users.erb
ruby_shopify_app-1.1.0 lib/generators/shopify_app/user_model/templates/db/migrate/create_users.erb
shopify_app-22.1.0 lib/generators/shopify_app/user_model/templates/db/migrate/create_users.erb
shopify_app-22.0.1 lib/generators/shopify_app/user_model/templates/db/migrate/create_users.erb
shopify_app-22.00.0 lib/generators/shopify_app/user_model/templates/db/migrate/create_users.erb
shopify_app-21.10.0 lib/generators/shopify_app/user_model/templates/db/migrate/create_users.erb
shopify_app-21.9.0 lib/generators/shopify_app/user_model/templates/db/migrate/create_users.erb
shopify_app-21.8.1 lib/generators/shopify_app/user_model/templates/db/migrate/create_users.erb
shopify_app-21.8.0 lib/generators/shopify_app/user_model/templates/db/migrate/create_users.erb