Sha256: 072f960806d1d31cbad8db41fba2820b8a9377755939af16b96fb537565859c2
Contents?: true
Size: 481 Bytes
Versions: 8
Compression:
Stored size: 481 Bytes
Contents
class AddColumnTestTable < ActiveRecord::Migration def up add_column(:test_tables, :test_str, :string, :limit => 16, :default => "xyz") add_column(:test_tables, :test_int, :integer, :default => 100) add_column(:test_tables, :test_float, :float, :limit => 12, :default => 3.14, :precision => 6, :scale => 3) end def down remove_column(:test_tables, :test_str) remove_column(:test_tables, :test_int) remove_column(:test_tables, :test_float) end end
Version data entries
8 entries across 8 versions & 1 rubygems