Sha256: 9f9ee8e130878990a17dbae8678ee4d4245a8ae295148761078a8b55f86b4774
Contents?: true
Size: 926 Bytes
Versions: 1
Compression:
Stored size: 926 Bytes
Contents
class CreateUserGroupHasCheckoutTypes < ActiveRecord::Migration[5.0] def self.up create_table :user_group_has_checkout_types do |t| t.integer :user_group_id, null: false t.integer :checkout_type_id, null: false t.integer :checkout_limit, default: 0, null: false t.integer :checkout_period, default: 0, null: false t.integer :checkout_renewal_limit, default: 0, null: false t.integer :reservation_limit, default: 0, null: false t.integer :reservation_expired_period, default: 7, null: false t.boolean :set_due_date_before_closing_day, default: false, null: false t.datetime :fixed_due_date t.text :note t.integer :position t.timestamps end add_index :user_group_has_checkout_types, :user_group_id add_index :user_group_has_checkout_types, :checkout_type_id end def self.down drop_table :user_group_has_checkout_types 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/20081030023518_create_user_group_has_checkout_types.rb |