Sha256: 6a9ff5917607e8288f4512759b37fceee819ae56b41bd040ef9eecea7300f2e0
Contents?: true
Size: 779 Bytes
Versions: 5
Compression:
Stored size: 779 Bytes
Contents
class CreateProducts < ActiveRecord::Migration def self.up create_table :products do |t| t.integer :account_id, :null => false t.string :product_name, :limit => 255, :null => false t.text :product_description t.string :product_image_url, :limit =>255 t.integer :product_price, :null=>false t.boolean :require_domain t.boolean :enable_new_domain t.boolean :enable_transfer_domain t.boolean :enable_sub_domain t.boolean :enable_own_domain t.integer :server_id t.string :server_package t.timestamps end add_index :products, [:product_name,:account_id], :unique => true end def self.down drop_table :products end end
Version data entries
5 entries across 5 versions & 2 rubygems