リビジョン 9eaed6ad
| db/migrate/001_create_terms.rb | ||
|---|---|---|
|
class CreateTerms < ActiveRecord::Migration
|
||
|
class CreateTerms < ActiveRecord::Migration[4.2]
|
||
|
def self.up
|
||
|
# CreateTermCategories
|
||
|
create_table :term_categories, :force => true do |t|
|
||
| db/migrate/002_create_glossary_styles.rb | ||
|---|---|---|
|
class CreateGlossaryStyles < ActiveRecord::Migration
|
||
|
class CreateGlossaryStyles < ActiveRecord::Migration[4.2]
|
||
|
def self.up
|
||
|
create_table :glossary_styles do |t|
|
||
|
t.column :show_desc, :boolean, :default => false
|
||
| db/migrate/003_terms_add_columns.rb | ||
|---|---|---|
|
class TermsAddColumns < ActiveRecord::Migration
|
||
|
class TermsAddColumns < ActiveRecord::Migration[4.2]
|
||
|
def self.up
|
||
|
add_column :terms, :tech_en, :string, :default => ''
|
||
|
add_column :terms, :name_cn, :string, :default => ''
|
||
db migration with versioning