forked from galetahub/ckeditor
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
resolve unexpected end-of-input in migration file
- Loading branch information
Showing
10 changed files
with
102 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
lib/generators/ckeditor/templates/active_record/carrierwave/migration.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
lib/generators/ckeditor/templates/active_record/carrierwave/migration_versioned.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
class CreateCkeditorAssets < ActiveRecord::Migration<%= migration_version %> | ||
def self.up | ||
create_table :ckeditor_assets do |t| | ||
t.string :data_file_name, null: false | ||
t.string :data_content_type | ||
t.integer :data_file_size | ||
t.string :type, limit: 30 | ||
|
||
# Uncomment it to save images dimensions, if your need it | ||
t.integer :width | ||
t.integer :height | ||
|
||
t.timestamps null: false | ||
end | ||
|
||
add_index :ckeditor_assets, :type | ||
end | ||
|
||
def self.down | ||
drop_table :ckeditor_assets | ||
end | ||
end |
2 changes: 1 addition & 1 deletion
2
lib/generators/ckeditor/templates/active_record/dragonfly/migration.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
lib/generators/ckeditor/templates/active_record/dragonfly/migration_versioned.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
class CreateCkeditorAssets < ActiveRecord::Migration<%= migration_version %> | ||
def self.up | ||
create_table :ckeditor_assets do |t| | ||
t.string :data_uid, null: false | ||
t.string :data_name, null: false | ||
t.string :data_mime_type | ||
t.integer :data_size | ||
t.string :type, limit: 30 | ||
|
||
# Uncomment these to save image dimensions, if your need them. | ||
t.integer :data_width | ||
t.integer :data_height | ||
|
||
t.timestamps null: false | ||
end | ||
|
||
add_index :ckeditor_assets, :type | ||
end | ||
|
||
def self.down | ||
drop_table :ckeditor_assets | ||
end | ||
end |
2 changes: 1 addition & 1 deletion
2
lib/generators/ckeditor/templates/active_record/paperclip/migration.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
lib/generators/ckeditor/templates/active_record/paperclip/migration_versioned.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
class CreateCkeditorAssets < ActiveRecord::Migration<%= migration_version %> | ||
def self.up | ||
create_table :ckeditor_assets do |t| | ||
t.string :data_file_name, null: false | ||
t.string :data_content_type | ||
t.integer :data_file_size | ||
t.string :data_fingerprint | ||
t.string :type, limit: 30 | ||
|
||
# Uncomment it to save images dimensions, if your need it | ||
t.integer :width | ||
t.integer :height | ||
|
||
t.timestamps null: false | ||
end | ||
|
||
add_index :ckeditor_assets, :type | ||
end | ||
|
||
def self.down | ||
drop_table :ckeditor_assets | ||
end | ||
end |
2 changes: 1 addition & 1 deletion
2
lib/generators/ckeditor/templates/active_record/refile/migration.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
lib/generators/ckeditor/templates/active_record/refile/migration_versioned.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
class CreateCkeditorAssets < ActiveRecord::Migration<%= migration_version %> | ||
def self.up | ||
create_table :ckeditor_assets do |t| | ||
t.string :data_id, null: false | ||
t.string :data_filename, null: false | ||
t.integer :data_size | ||
t.string :data_content_type | ||
t.string :type, limit: 30 | ||
|
||
# Uncomment it to save images dimensions, if your need it | ||
t.integer :width | ||
t.integer :height | ||
|
||
t.timestamps null: false | ||
end | ||
|
||
add_index :ckeditor_assets, :type | ||
end | ||
|
||
def self.down | ||
drop_table :ckeditor_assets | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters