This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
class CreatePublishers < ActiveRecord::Migration[8.0]
|
||||
def change
|
||||
create_table :publishers do |t|
|
||||
t.datetime :created_date
|
||||
t.datetime :last_modified_date
|
||||
t.integer :version
|
||||
t.string :name
|
||||
t.string :weblink
|
||||
t.string :parent_publisher_id
|
||||
end
|
||||
change_column :publishers, :id, :string
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,15 @@
|
||||
class CreateComics < ActiveRecord::Migration[8.0]
|
||||
def change
|
||||
create_table :comics do |t|
|
||||
t.datetime :created_date
|
||||
t.datetime :last_modified_date
|
||||
t.integer :version
|
||||
t.string :title
|
||||
t.boolean :current_order
|
||||
t.boolean :completed
|
||||
t.string :weblink
|
||||
t.belongs_to :publisher
|
||||
end
|
||||
change_column :comics, :id, :string
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,12 @@
|
||||
class CreateVolumes < ActiveRecord::Migration[8.0]
|
||||
def change
|
||||
create_table :volumes do |t|
|
||||
t.datetime :created_date
|
||||
t.datetime :last_modified_date
|
||||
t.integer :version
|
||||
t.string :name
|
||||
t.belongs_to :comic
|
||||
end
|
||||
change_column :volumes, :id, :string
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,14 @@
|
||||
class CreateTradePaperbacks < ActiveRecord::Migration[8.0]
|
||||
def change
|
||||
create_table :trade_paperbacks do |t|
|
||||
t.datetime :created_date
|
||||
t.datetime :last_modified_date
|
||||
t.integer :version
|
||||
t.string :name
|
||||
t.integer :issue_start
|
||||
t.integer :issue_end
|
||||
t.belongs_to :comic
|
||||
end
|
||||
change_column :trade_paperbacks, :id, :string
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,12 @@
|
||||
class CreateStoryArcs < ActiveRecord::Migration[8.0]
|
||||
def change
|
||||
create_table :story_arcs do |t|
|
||||
t.datetime :created_date
|
||||
t.datetime :last_modified_date
|
||||
t.integer :version
|
||||
t.string :name
|
||||
t.belongs_to :comic
|
||||
end
|
||||
change_column :story_arcs, :id, :string
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,18 @@
|
||||
class CreateIssues < ActiveRecord::Migration[8.0]
|
||||
def change
|
||||
create_table :issues do |t|
|
||||
t.datetime :created_date
|
||||
t.datetime :last_modified_date
|
||||
t.integer :version
|
||||
t.string :issueNumber
|
||||
t.string :title
|
||||
t.datetime :published_on
|
||||
t.boolean :in_stock
|
||||
t.boolean :is_read
|
||||
t.belongs_to :comic
|
||||
t.belongs_to :volume
|
||||
t.belongs_to :story_arc
|
||||
end
|
||||
change_column :issues, :id, :string
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,9 @@
|
||||
class CreateArtists < ActiveRecord::Migration[8.0]
|
||||
def change
|
||||
create_table :artists do |t|
|
||||
t.string :name
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,9 @@
|
||||
class CreateWorktypes < ActiveRecord::Migration[8.0]
|
||||
def change
|
||||
create_table :worktypes do |t|
|
||||
t.string :name
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,7 @@
|
||||
class CreateComicWorks < ActiveRecord::Migration[8.0]
|
||||
def change
|
||||
create_table :comic_works do |t|
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,7 @@
|
||||
class CreateIssueWorks < ActiveRecord::Migration[8.0]
|
||||
def change
|
||||
create_table :issue_works do |t|
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user