parent
36b0e3d97f
commit
cb73a97425
@ -1,5 +1,5 @@
|
||||
class Ecloud < ActiveRecord::Base
|
||||
attr_accessible :applyno, :begintime, :bossorderid, :custcode, :custid, :custname, :custtype, :ecordercode, :endtime, :mobile, :opttype, :productcode, :registersource, :string, :trial, :useralias, :userid, :username
|
||||
has_many :ecloud_users, destroy: :dependence
|
||||
has_many :ecloud_services, destroy: :dependence
|
||||
has_many :ecloud_users
|
||||
has_many :ecloud_services
|
||||
end
|
||||
|
@ -0,0 +1,5 @@
|
||||
class AddIndexToEcloud < ActiveRecord::Migration
|
||||
def change
|
||||
add_index :eclouds, [:ecordercode, :custcode], :unique => true, :name => 'ecorder_cust_code'
|
||||
end
|
||||
end
|
Loading…
Reference in new issue