Sha256: 0397a49570da79889f60b28d5b2ca8d6abd6d818907f4712af62819c563acbbc
Contents?: true
Size: 868 Bytes
Versions: 61
Compression:
Stored size: 868 Bytes
Contents
class CreateEcomCoreUsers < ActiveRecord::Migration[6.0] def change create_table :ecom_core_users do |t| t.string :first_name, null: false t.string :last_name, null: false t.string :email, null: false t.boolean :active, null: false, default: true t.string :password_digest t.timestamps end create_table :ecom_core_application_modules_users, id: false do |t| t.references :user, index: false t.references :application_module, index: false end add_index :ecom_core_application_modules_users, %i[user_id application_module_id], name: 'am_on_users_indx' add_foreign_key :ecom_core_application_modules_users, :ecom_core_users, column: :user_id add_foreign_key :ecom_core_application_modules_users, :ecom_core_application_modules, column: :application_module_id end end
Version data entries
61 entries across 61 versions & 1 rubygems