ecloud表结构调整

dev_SaaS
jingquan huang 6 years ago
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 EcloudUser < ActiveRecord::Migration class CreateEcloudUser < ActiveRecord::Migration
def change def change
create_table :ecloud_users do |t| create_table :ecloud_users do |t|
t.integer :opttype t.integer :opttype

@ -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

@ -1,4 +1,4 @@
class EcloudService < ActiveRecord::Migration class CreateEcloudService < ActiveRecord::Migration
def change def change
create_table :ecloud_services do |t| create_table :ecloud_services do |t|
t.integer :opttype t.integer :opttype

Loading…
Cancel
Save