parent
a6445b85f1
commit
3afe376f94
@ -1,5 +1,5 @@
|
|||||||
class Ecloud < ActiveRecord::Base
|
class Ecloud < ActiveRecord::Base
|
||||||
attr_accessible :applyno, :begintime, :bossorderid, :custcode, :custid, :custname, :custtype, :ecordercode, :endtime, :mobile, :opttype, :productcode, :registersource, :string, :trial, :useralias, :userid, :username
|
attr_accessible :applyno, :begintime, :bossorderid, :custcode, :custid, :custname, :custtype, :ecordercode, :endtime, :mobile, :opttype, :productcode, :registersource, :string, :trial, :useralias, :userid, :username
|
||||||
has_many :ecloud_userses, destroy: :dependence
|
has_many :ecloud_users, destroy: :dependence
|
||||||
has_many :ecloud_services, destroy: :dependence
|
has_many :ecloud_services, destroy: :dependence
|
||||||
end
|
end
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
class Ecloud < ActiveRecord::Migration
|
class CreateEcloud < ActiveRecord::Migration
|
||||||
def change
|
def change
|
||||||
create_table :eclouds do |t|
|
create_table :eclouds do |t|
|
||||||
t.string :applyno
|
t.string :applyno
|
Loading…
Reference in new issue