Sha256: c319619ad8a49ff743f4df6c6c8bd63dba31c029e09bbcf8fd837bcd5edb8f1b
Contents?: true
Size: 660 Bytes
Versions: 52
Compression:
Stored size: 660 Bytes
Contents
class CreateLendingPolicies < ActiveRecord::Migration[4.2] def self.up create_table :lending_policies do |t| t.references :item, index: false, foreign_key: true, null: false t.references :user_group, index: false, foreign_key: true, null: false t.integer :loan_period, default: 0, null: false t.datetime :fixed_due_date t.integer :renewal, default: 0, null: false t.integer :fine, default: 0, null: false t.text :note t.integer :position t.timestamps end add_index :lending_policies, [:item_id, :user_group_id], unique: true end def self.down drop_table :lending_policies end end
Version data entries
52 entries across 52 versions & 4 rubygems