Init dump
This commit is contained in:
@@ -1,10 +0,0 @@
|
||||
class CreateArticles < ActiveRecord::Migration[7.0]
|
||||
def change
|
||||
create_table :articles do |t|
|
||||
t.string :title
|
||||
t.text :content
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -1,10 +0,0 @@
|
||||
class CreateComments < ActiveRecord::Migration[7.0]
|
||||
def change
|
||||
create_table :comments do |t|
|
||||
t.references :article, null: false, foreign_key: true
|
||||
t.text :content
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,9 @@
|
||||
class CreateIdCardBenefitsTemplates < ActiveRecord::Migration[7.2]
|
||||
def change
|
||||
create_table :id_card_benefits_templates do |t|
|
||||
t.string :title
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,12 @@
|
||||
class CreateIdCardBenefits < ActiveRecord::Migration[7.2]
|
||||
def change
|
||||
create_table :id_card_benefits do |t|
|
||||
t.string :benefit_desc
|
||||
t.string :benefit
|
||||
t.integer :sequence
|
||||
t.references :id_card_benefits_template, null: false, foreign_key: true
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user