Sha256: 899adb6df63bea5d324818bd9a3abbd3292f7405aeae8a8155fbf56fe6a6fa30
Contents?: true
Size: 653 Bytes
Versions: 6
Compression:
Stored size: 653 Bytes
Contents
module {{namespace_module}} module Sessions class Model < ActiveRecord::Base include BCrypt include Sessions self.table_name = NAMESPACE belongs_to :account, class_name: "{{namespace_module}}::Accounts::Model", foreign_key: "account_id" def self.setup! ActiveRecord::Migration.create_table table_name, force: true, id: :uuid do |table| table.string :account_id, null: false table.index :account_id table.datetime :created_at table.index :created_at table.datetime :destroyed_at table.index :destroyed_at end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems