Sha256: ba58686c01072dd5860caa0a93a9a490a9da763b0bda775f6c1ea7bb9ed9d468
Contents?: true
Size: 594 Bytes
Versions: 1
Compression:
Stored size: 594 Bytes
Contents
class CreateLendingPolicies < ActiveRecord::Migration[5.0] def self.up create_table :lending_policies do |t| t.integer :item_id, null: false t.integer :user_group_id, 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
enju_seed-0.3.0.beta.4 | spec/dummy/db/migrate/20090831220301_create_lending_policies.rb |