Sha256: c2d7f558e4803f66fc4ec2b8c6b69d5e0ec0ac5192f87420a15ea22f277db578
Contents?: true
Size: 632 Bytes
Versions: 4
Compression:
Stored size: 632 Bytes
Contents
class CreateSuppliers < ActiveRecord::Migration def change create_table :spree_suppliers do |t| t.boolean :active, default: false, null: false t.references :address t.decimal :commission_flat_rate, :precision => 8, :scale => 2, :default => 0.0, :null => false t.float :commission_percentage, default: 0.0, null: false t.string :email t.string :name t.string :url t.datetime :deleted_at t.timestamps end add_index :spree_suppliers, :address_id add_index :spree_suppliers, :deleted_at add_index :spree_suppliers, :active end end
Version data entries
4 entries across 4 versions & 1 rubygems