Add Rails release to ActiveRecord::Migration
This commit is contained in:
parent
44a198c7bc
commit
74531f90c7
108 changed files with 108 additions and 108 deletions
|
|
@ -1,4 +1,4 @@
|
|||
class CreateDocuments < ActiveRecord::Migration
|
||||
class CreateDocuments < ActiveRecord::Migration[4.2]
|
||||
def self.up
|
||||
create_table :documents do |t|
|
||||
t.string :name
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
class AddParentToDocument < ActiveRecord::Migration
|
||||
class AddParentToDocument < ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
add_reference :documents, :parent, index: true
|
||||
end
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
class CreateLinks < ActiveRecord::Migration
|
||||
class CreateLinks < ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
create_table :links do |t|
|
||||
t.string :name, null: false
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
# attempt to create an already existing messages table.
|
||||
#
|
||||
# extracted from 20090120184410_road_to_version_three.rb
|
||||
class CreateMessages < ActiveRecord::Migration
|
||||
class CreateMessages < ActiveRecord::Migration[4.2]
|
||||
def self.up
|
||||
create_table :messages do |t|
|
||||
t.references :sender
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
class AddEmailToMessage < ActiveRecord::Migration
|
||||
class AddEmailToMessage < ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
add_column :messages, :salt, :string
|
||||
add_column :messages, :received_email, :binary, :limit => 1.megabyte
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
class CreatePolls < ActiveRecord::Migration
|
||||
class CreatePolls < ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
create_table :polls do |t|
|
||||
t.integer :created_by_user_id, null: false
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
class IncreaseChoicesSize < ActiveRecord::Migration
|
||||
class IncreaseChoicesSize < ActiveRecord::Migration[4.2]
|
||||
def up
|
||||
change_column :polls, :choices, :text, limit: 65535
|
||||
end
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
class CreatePrinterJobs < ActiveRecord::Migration
|
||||
class CreatePrinterJobs < ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
create_table :printer_jobs do |t|
|
||||
t.references :order
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
class CreatePages < ActiveRecord::Migration
|
||||
class CreatePages < ActiveRecord::Migration[4.2]
|
||||
def self.up
|
||||
create_table :pages do |t|
|
||||
t.string :title
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue